/**
 * Generate code from /{{projectName}}-core/src/main/java/{{packageName}}/{{apis}}/dto/{{apiDtos@DEFAULT}}.java.hbs
 */
package cn.ibizlab.api.dto;

import java.util.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient;
import lombok.*;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 系统角色成员[SysRoleMemberDTO]
 *
 * @author generator
 */
@Getter
@Setter
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("系统角色成员DTO")
public class SysRoleMemberDTO extends DTOBase implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @JsonProperty("id")
    @JSONField(name = "id")
    @ApiModelProperty(value = "标识", position = 0)
    private String id;

    /**
     * 创建人
     */
    @JsonProperty("creator")
    @JSONField(name = "creator")
    @ApiModelProperty(value = "创建人", position = 1)
    private String creator;

    /**
     * 创建时间
     */
    @JsonProperty("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @JSONField(name = "create_time" , format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", position = 2)
    private Date createTime;

    /**
     * 最后更新人
     */
    @JsonProperty("updater")
    @JSONField(name = "updater")
    @ApiModelProperty(value = "最后更新人", position = 3)
    private String updater;

    /**
     * 最后更新时间
     */
    @JsonProperty("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @JSONField(name = "update_time" , format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后更新时间", position = 4)
    private Date updateTime;

    /**
     * DC
     */
    @JsonProperty("dc")
    @JSONField(name = "dc")
    @ApiModelProperty(value = "DC", position = 5)
    private String dc;

    /**
     * 系统角色标识
     */
    @JsonProperty("role_id")
    @JSONField(name = "role_id")
    @ApiModelProperty(value = "系统角色标识", position = 6)
    private String roleId;

    /**
     * 成员类型
     */
    @JsonProperty("member_type")
    @JSONField(name = "member_type")
    @ApiModelProperty(value = "成员类型", position = 7)
    private String memberType;

    /**
     * 用户组/人员标识
     */
    @JsonProperty("member_uid")
    @JSONField(name = "member_uid")
    @ApiModelProperty(value = "用户组/人员标识", position = 8)
    private String memberUid;

    /**
     * 成员名称
     */
    @JsonProperty("member_name")
    @JSONField(name = "member_name")
    @ApiModelProperty(value = "成员名称", position = 9)
    private String memberName;

    /**
     * 成员DN
     */
    @JsonProperty("member_dn")
    @JSONField(name = "member_dn")
    @ApiModelProperty(value = "成员DN", position = 10)
    private String memberDn;

    /**
     * 成员分组标识
     */
    @JsonProperty("member_group_id")
    @JSONField(name = "member_group_id")
    @ApiModelProperty(value = "成员分组标识", position = 11)
    private String memberGroupId;

    /**
     * 成员分组名称
     */
    @JsonProperty("member_group_name")
    @JSONField(name = "member_group_name")
    @ApiModelProperty(value = "成员分组名称", position = 12)
    private String memberGroupName;

    /**
     * 部门标识
     */
    @JsonProperty("department_id")
    @JSONField(name = "department_id")
    @ApiModelProperty(value = "部门标识", position = 13)
    private String departmentId;

    /**
     * 组织机构标识
     */
    @JsonProperty("organization_id")
    @JSONField(name = "organization_id")
    @ApiModelProperty(value = "组织机构标识", position = 14)
    private String organizationId;

    /**
     * Mail
     */
    @JsonProperty("mail")
    @JSONField(name = "mail")
    @ApiModelProperty(value = "Mail", position = 15)
    private String mail;

    /**
     * 系统角色名称
     */
    @JsonProperty("role_name")
    @JSONField(name = "role_name")
    @ApiModelProperty(value = "系统角色名称", position = 16)
    private String roleName;

    /**
     * 角色标记
     */
    @JsonProperty("role_authority")
    @JSONField(name = "role_authority")
    @ApiModelProperty(value = "角色标记", position = 17)
    private String roleAuthority;

    /**
     * 系统标识
     */
    @JsonProperty("deploy_system_id")
    @JSONField(name = "deploy_system_id")
    @ApiModelProperty(value = "系统标识", position = 18)
    private String deploySystemId;


    /**
     * 设置 [DC]
     */
    public SysRoleMemberDTO setDc(String dc) {
        this.dc = dc;
        this.modify("dc", dc);
        return this;
    }

    /**
     * 设置 [系统角色标识]
     */
    public SysRoleMemberDTO setRoleId(String roleId) {
        this.roleId = roleId;
        this.modify("role_id", roleId);
        return this;
    }

    /**
     * 设置 [成员类型]
     */
    public SysRoleMemberDTO setMemberType(String memberType) {
        this.memberType = memberType;
        this.modify("member_type", memberType);
        return this;
    }

    /**
     * 设置 [用户组/人员标识]
     */
    public SysRoleMemberDTO setMemberUid(String memberUid) {
        this.memberUid = memberUid;
        this.modify("member_uid", memberUid);
        return this;
    }

    /**
     * 设置 [成员名称]
     */
    public SysRoleMemberDTO setMemberName(String memberName) {
        this.memberName = memberName;
        this.modify("member_name", memberName);
        return this;
    }

    /**
     * 设置 [成员DN]
     */
    public SysRoleMemberDTO setMemberDn(String memberDn) {
        this.memberDn = memberDn;
        this.modify("member_dn", memberDn);
        return this;
    }

    /**
     * 设置 [成员分组标识]
     */
    public SysRoleMemberDTO setMemberGroupId(String memberGroupId) {
        this.memberGroupId = memberGroupId;
        this.modify("member_group_id", memberGroupId);
        return this;
    }

    /**
     * 设置 [成员分组名称]
     */
    public SysRoleMemberDTO setMemberGroupName(String memberGroupName) {
        this.memberGroupName = memberGroupName;
        this.modify("member_group_name", memberGroupName);
        return this;
    }

    /**
     * 设置 [部门标识]
     */
    public SysRoleMemberDTO setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
        this.modify("department_id", departmentId);
        return this;
    }

    /**
     * 设置 [组织机构标识]
     */
    public SysRoleMemberDTO setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
        this.modify("organization_id", organizationId);
        return this;
    }

    /**
     * 设置 [Mail]
     */
    public SysRoleMemberDTO setMail(String mail) {
        this.mail = mail;
        this.modify("mail", mail);
        return this;
    }

    /**
     * 设置 [系统角色名称]
     */
    public SysRoleMemberDTO setRoleName(String roleName) {
        this.roleName = roleName;
        this.modify("role_name", roleName);
        return this;
    }

    /**
     * 设置 [角色标记]
     */
    public SysRoleMemberDTO setRoleAuthority(String roleAuthority) {
        this.roleAuthority = roleAuthority;
        this.modify("role_authority", roleAuthority);
        return this;
    }

    /**
     * 设置 [系统标识]
     */
    public SysRoleMemberDTO setDeploySystemId(String deploySystemId) {
        this.deploySystemId = deploySystemId;
        this.modify("deploy_system_id", deploySystemId);
        return this;
    }


}
